<?php
include_once $_SERVER['DOCUMENT_ROOT']."/functions/bdd/init.php";

function get_description(){
	
	$bdd = bdd_init();
	
	$rep_get_description = $bdd->query("SELECT * FROM messages WHERE cle='description'");
	$description = $rep_get_description->fetch();
	
	$rep_get_description->closeCursor();
	
	return $description['value'];
}

function set_descrption($description){
	
	$bdd = bdd_init();
	
	$prep_set_description = $bdd->prepare("UPDATE messages SET value=? WHERE cle='description'");
	$prep_set_description->execute(array($description));
	
	$prep_set_description->closeCursor();
}

?>
